<template>
  <view>
    <view class="cu-bar bg-white margin-top-xs">
      <view class="action sub-title">
        <text class="text-xl text-bold  text-shadow text-custom">核销信息</text>
        <text class="text-ABC text-custom">VERIFY</text>
      </view>
    </view>
    <view >
      <view class="cu-form-group">
        <view class="vlabel"><font class="vname">姓名:</font>{{verifyDail.adminName}}</view>
      </view>
      <view class="cu-form-group">
        <view class="vlabel"><font class="vname"> 级别:</font>{{verifyDail.adminLevel}}</view>
      </view>

      <view class="cu-form-group">
        <view class="vlabel"><font class="vname"> 订单总金额（{{verifyDail.orderCount}}）:</font>{{verifyDail.totalPrice}}</view>
      </view>
      <view class="cu-form-group">
        <view class="vlabel"><font class="vname"> 核销总金额:</font>{{verifyDail.totalVerifPrice}}</view>
      </view>

      <view class="cu-form-group">
        <view class="vlabel"><font class="vname"> 审核状态:</font>{{verifyDail.examineVerifyName}}</view>
      </view>
      <view class="cu-form-group" v-if="verifyDail.examineVerify == 1 || verifyDail.examineVerify ==2">
        <view class="vlabel"><font class="vname"> 审核日期:</font>{{verifyDail.examineVerifyTime}}</view>
      </view>
      <view class="cu-form-group" v-if="verifyDail.examineVerify == 1 || verifyDail.examineVerify ==2">
        <view class="vlabel"><font class="vname"> 审核备注:</font>{{verifyDail.examineVerifyRemark}}</view>
      </view>
      <view class="cu-form-group">
        <view class="vlabel"><font class="vname"> 提现状态:</font>{{verifyDail.tixianFlagName}}</view>
      </view>

      <view class="cu-form-group" v-if="verifyDail.examineVerify != 0">
        <view class="vlabel"><font class="vname"> 提现时间:</font>{{verifyDail.tixianTime}}</view>
      </view>
      <view class="cu-form-group" v-if="verifyDail.examineVerify != 0">
        <view class="vlabel"><font class="vname"> 提现备注:</font>{{verifyDail.tixianRemark}}</view>
      </view>
    </view>

    <view class="cu-bar bg-white margin-top-xs">
      <view class="action sub-title">
        <text class="text-xl text-bold  text-shadow text-custom">核销明细</text>
        <text class="text-ABC text-custom">ORDER</text>
      </view>
    </view>
    <view>
       <verify-order-detail-one-list v-for="(item, index) in verifyDail.orderDetails" :orderDetail="item"></verify-order-detail-one-list>
    </view>
  </view>
</template>

<script setup lang="ts">
import {onLoad} from '@dcloudio/uni-app'
import {ref, onMounted, computed, reactive} from 'vue';
import {adminVerifyDetail} from '../../common/api/order'
import VerifyOrderDetailOneList
  from "../../components/VerifyOrderDetailOneList.vue";


const verifyDail = ref({})

const id = ref(0)


onLoad(option => {
  id.value = option.id
})
onMounted(() => {
  if (id.value) {
    adminVerifyDetail(id.value).then(res => {
      verifyDail.value = res.data;
    })
  }
})
</script>

<style lang="scss" scoped>
</style>
